package com.banmao.algorithm.No101To200.No199;

import java.util.List;

public class Answer {

    public static void main(String[] args) {

        Solution1 solution = new Solution1();

        //TreeNode root = new TreeNode(1, new TreeNode(2, null, new TreeNode(5)), new TreeNode(3, null, new TreeNode(4)));
        TreeNode root = new TreeNode(1, new TreeNode(2, new TreeNode(4), null), new TreeNode(3));

        List<Integer> result = solution.rightSideView(root);
        for (Integer integer : result) {
            System.out.print(integer + " ");
        }


    }

}
